﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SRM.DataObjects;
using System.Data;
using System.Web.Security;

namespace SRM
{
    public partial class LogoutForm : System.Web.UI.Page
    {
        public DataTable Applicant { get; set; }
        public string ApplicantKey { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            FormsAuthentication.SignOut();
            Session.Abandon();

            if (Request.Cookies["ASP.NET_SessionId"] != null)
            {
                Response.Cookies["ASP.NET_SessionId"].Expires = DateTime.Now.AddDays(-1);
            }
            Response.Redirect("LoginForm.aspx");
        }

} // public partial class ApplicantForm : System.Web.UI.Page

} // namespace SRM